/*! 
 * Implementation file for the collision primitive attributes (manager).
 *
 * \author Devis Rossini
 * \date 24 April 2012
 */  
#include "PhxCollisionPrimitiveAttributes.h"

using namespace phx;

void CollisionPrimitiveAttributesManager::SetAttribute(const CollisionPrimitiveAttribute iAttribute, const bool iAcitve)
{
	mAttributesMap[iAttribute] = iAcitve;
}

bool CollisionPrimitiveAttributesManager::HasAttribute(const CollisionPrimitiveAttribute iAttribute) const
{
	// Search for the attribute.
	size_t count = mAttributesMap.count(iAttribute);
	return (count != 0);
}